From: Felix Fietkau Date: Sun, 3 Jan 2016 23:13:03 +0000 (+0000) Subject: build: filter out relative directory entries from $PATH X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22/%22https:/collectd.org/%22?a=commitdiff_plain;h=af75d589b3d4ebdcf4c664436280f159631d094d;p=openwrt%2Fsvn-archive%2Farchive.git build: filter out relative directory entries from $PATH Signed-off-by: Felix Fietkau SVN-Revision: 48107 --- diff --git a/include/toplevel.mk b/include/toplevel.mk index c8f342b48f..0b5ac2686f 100644 --- a/include/toplevel.mk +++ b/include/toplevel.mk @@ -39,6 +39,13 @@ unexport LPATH # make sure that a predefined CFLAGS variable does not disturb packages export CFLAGS= +empty:= +space:= $(empty) $(empty) +path:=$(subst :,$(space),$(PATH)) +path:=$(filter-out .%,$(path)) +path:=$(subst $(space),:,$(path)) +export PATH:=$(path) + unexport TAR_OPTIONS ifneq ($(shell $(HOSTCC) 2>&1 | grep clang),)